TArray.BinarySearchUpperBound<T>(T[],T,Integer) Method

Searches a sorted array for the given value, using a binary search algorithm returning the index for the last found value.

Namespace: Spring
public
 class function BinarySearchUpperBound<T>(const values: array of T;
 const item: T; out foundIndex: Integer): Boolean; overload; static; static;

Type Parameters

T

Parameters

values
Type: array of T

item
Type: T

foundIndex
Type: Integer

Return Value

Type: Boolean